// Programming_Scala/src/ch03/yielding-for-script.scala

val dogBreeds = List( "Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Scarier Terrier", "Great Dane", "Portuguese Water Dog" )

val filteredBreeds = for {
  breed <- dogBreeds
  if breed.contains( "Terrier" );
  if !breed.startsWith( "Yorkshire" )
} yield breed

println( filteredBreeds )
